29c5eb5c595513714de0efc081b31aaa26f623df,components/kubernetes-jolokia/src/main/java/io/fabric8/kubernetes/jolokia/JolokiaClients.java,JolokiaClients,clientForReplicationController,#ReplicationController#,82
Before Change
* Returns a client for the first working pod for the given replication controller
*/
public J4pClient clientForReplicationController(ReplicationController replicationController) {
List<Pod> pods = KubernetesHelper.getPodsForReplicationController(replicationController, kubernetes.pods().list().getItems());
return clientForPod(pods);
}
After Change
* Returns a client for the first working pod for the given replication controller
*/
public J4pClient clientForReplicationController(ReplicationController replicationController) {
List<Pod> pods = KubernetesHelper.getPodsForReplicationController(replicationController, kubernetes.pods().inNamespace(replicationController.getMetadata().getNamespace()).list().getItems());
return clientForPod(pods);
}